package TDAMap;

public class Entrada<K,V> implements Entry<K,V> {
	
	// Atributos de instancia
	
	private K clave;
	private V valor;
	
	// Constructor
	
	public Entrada (K clave, V valor) {
		this.clave = clave;
		this.valor = valor;
	}
	
	// Comandos
	
	public void setKey (K clave) {
		this.clave = clave;
	}
	
	public void setValue (V valor) {
		this.valor = valor;
	}
	
	public K getKey () {
		return clave;
	}
	
	public V getValue() {
		return valor;
	}
	
	public String toString () {
		return "clave: "+clave+", valor: "+valor;
	}

}
